package cn.kkcxy.blog.system.mapper.sys;

import cn.kkcxy.blog.core.dto.admin.ManageGetUserListDTO;
import cn.kkcxy.blog.core.dto.client.CheckUserAccountParamsDTO;
import cn.kkcxy.blog.core.entity.sys.SysUser;
import cn.kkcxy.blog.core.vo.admin.system.SimpleUserInfoVO;
import cn.kkcxy.blog.core.vo.admin.system.UserDetailsVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
* @author kk
* @description 针对表【sys_user】的数据库操作Mapper
* @createDate 2024-09-11 00:50:27
* @Entity cn.kkcxy.blog.core.entity.sys.SysUser
*/
public interface SysUserMapper extends BaseMapper<SysUser> {

    /** 
     * @description: 查询账号是否被禁用或删除
     * @author: kkcxy
     * @date: 2024/9/12 0:43
     * @param: [dto]
     * @return: cn.kkcxy.blog.core.entity.sys.SysUser
     **/
    SysUser selectUserAccountDisabled(CheckUserAccountParamsDTO dto);

    /**
     * @description: 注册用户并返回已注册的账号ID
     * @author: kkcxy
     * @date: 2024/9/12 0:43
     * @param: [sysUser]
     * @return: java.lang.Long
     **/
    Long registerUser(SysUser sysUser);

    /**
     * 得到用户简易信息列表
     */
    List<SimpleUserInfoVO> getSimpleUserInfoList(ManageGetUserListDTO manageGetUserListDTO);

    /**
     * 获取用户详情
     */
    UserDetailsVO getUserDetails(String userId);
}




